package com.bridgeintelligent.tag.webserver.dim.query.service;

import com.bridgeintelligent.tag.webserver.dim.query.api.DimTop10Rsp;
import com.bridgeintelligent.tag.webserver.dim.query.api.DimLastMonthRsp;
import com.bridgeintelligent.tag.webserver.dim.query.api.DimMonitorDetailRsp;
import feign.Body;
import feign.Headers;
import feign.RequestLine;
import feign.Param;

public interface HistoryMonitorApi {
    @RequestLine("POST /monitor/lastMonth")
    @Headers("Content-Type: application/x-www-form-urlencoded")
    @Body("condition={condition}")
    DimLastMonthRsp lastMonth(@Param("condition") CharSequence condition);

    @RequestLine("POST /monitor/top10")
    @Headers("Content-Type: application/x-www-form-urlencoded")
    @Body("condition={condition}")
    DimTop10Rsp top10(@Param("condition") CharSequence condition);

    @RequestLine("POST /monitor/detail")
    @Headers("Content-Type: application/x-www-form-urlencoded")
    @Body("condition={condition}")
    DimMonitorDetailRsp detail(@Param("condition") CharSequence condition);
}
